print(max([len(i) for i in input().split()]))
